package cn.inyaa.admin.blog.service;

import cn.inyaa.admin.blog.bean.InyaaType;
import cn.inyaa.admin.blog.dao.InyaaTypeDao;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class InyaaTypeService {

    private final InyaaTypeDao inyaaTypeDao;

    public List<InyaaType> findAll() {
        return inyaaTypeDao.findAll();
    }

    public void save(InyaaType type) {
        inyaaTypeDao.save(type);
    }

    public void delete(InyaaType type) {
        inyaaTypeDao.delete(type);
    }

}
